package
{
	import mx.resources.ResourceBundle;
	import mx.resources.ResourceManager;
	
//	[Bindable]
	public class SystemConfig
	{
		public static const LANG_EN:String = "en_US";
		public static const LANG_CN:String = "zh_CN";
		public static const RES_FILE:String = "resources";
		
//		[ResourceBundle("resources")]
//		private var resourceBundle:ResourceBundle;
		
		private static var _instance:SystemConfig;
		
		public function SystemConfig(errorEnforcer:SingletonEnforcer)
		{
			if(errorEnforcer == null){
				throw new Error("Sorry you cannot 'new'");
			}
		}
		
		public static function getInstance():SystemConfig{
			if(_instance == null)
				_instance = new SystemConfig(new SingletonEnforcer());
			return _instance;
		}
		
	}
}
class SingletonEnforcer{}